// 3、模拟三位老师同时分发80份学习笔记，每个老师相当于一个线程。
class MyThread2 extends Thread{
    public void run(){
        for(int i = 1;i <= 80;i++){
            System.out.println("老师2: " + i);
        }
    }
}
class MyThread3 extends Thread{
    public void run(){
        for(int i = 1;i <= 80;i++){
            System.out.println("老师3: " + i);
        }
    }
}
public class Demo3 {
    public static void main(String[] args) {
        Thread myThread2 = new MyThread2();
        Thread myThread3 = new MyThread3();

        myThread2.start();
        myThread3.start();

        for(int i = 1;i <= 80;i++){
            System.out.println("老师1: " + i);
        }
    }
}
